//
//  NSString+TYJSONSerialization.m
//  TYFoundationUtils
//
//  Created by 郭艺伟 on 2019/2/27.
//  Copyright © 2019年 厦门IOS开发团队. All rights reserved.
//

#import "NSString+TYJSONSerialization.h"
#import "NSData+TYJSONSerialization.h"
@implementation NSString (TYJSONSerialization)
- (id)ty_jsonValue {
    return [self ty_jsonValueWithError:nil];
}

- (id)ty_jsonValueWithError:(NSError * __autoreleasing *)error {
    
    return [[self dataUsingEncoding:NSUTF8StringEncoding] ty_jsonValueWithError:error];
}
- (id)ty_jsonValueWithOptions:(NSJSONReadingOptions)options error:(NSError * __autoreleasing *)error {
    return [[self dataUsingEncoding:NSUTF8StringEncoding] ty_jsonValueWithOptions:options error:error];
}
@end
